import { createRouter, createWebHashHistory } from 'vue-router'
import { httpService } from "@/utils/httpService";
import store from '../store';
import { fa } from 'element-plus/es/locale';

const routes = [


  {
    path: '/studentLeaveIndexView',
    name: 'StudentLeaveIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "走读生管理", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/studentLeaveLog/StudentLeaveIndexView.vue'),
    redirect: '/studentLeaveIndexView/studentLeaveMainView',
    children: [
      {
        path: 'studentLeaveMainView',
        name: 'StudentLeaveMainView',
        meta: { requireAuth: true },
        component: () => import('../views/studentLeaveLog/StudentLeaveMainView.vue')
      },

      // {
      //   path: 'studentLeaveLogListView',
      //   name: 'StudentLeaveLogListView',
      //   meta: {
      //     requireAuth: true, comp: 'Main', name: "主页", meta: {
      //       keepAlive: false
      //     },
      //   },
      //   component: () => import('../views/studentLeaveLog/StudentLeaveLogListView.vue')
      // },
      {
        path: 'attendDaySchool',
        name: 'AttendDaySchool',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/studentLeaveLog/AttendDaySchool.vue')
      },

      {
        path: 'attendDaySchoolCopy',
        name: 'AttendDaySchoolCopy',
        meta: {
          requireAuth: true, comp: 'AttendDaySchoolCopy', name: "进出校记录", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/studentLeaveLog/AttendDaySchoolCopy.vue'),
      },
    ]
  },


  {
    path: '/',
    name: 'Index',
    // redirect: '/baseInfoIndexView/baseInfoMainView',
    meta: { requireAuth: true },
    component: () => import('../views/IndexView.vue')
  },
  {
    path: '/index',
    name: 'newIndexView',
    // redirect: '/baseInfoIndexView/baseInfoMainView',
    meta: { requireAuth: true, meta: { keepAlive: true }, },
    component: () => import('../views/newIndexView.vue')
  },
  {
    path: '/newIndexViewCopy',
    name: 'newIndexViewCopy',
    // redirect: '/baseInfoIndexView/baseInfoMainView',
    meta: { requireAuth: true },
    component: () => import('../views/newIndexViewCopy.vue')
  },
  // {
  //   path: '/baseWorkRecordListView',
  //   name: 'BaseWorkRecordListView',
  //   // redirect: '/baseInfoIndexView/baseInfoMainView',
  //   meta: { requireAuth: true },
  //   component: () => import('../views/workRecord/BaseWorkRecordListView.vue')
  // },
  {
    path: '/newsNameByPad',
    name: 'newsNameByPad',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {
      },
    },
    component: () => import('../views/NewsListView.vue')
  },
  {
    path: '/login',
    name: 'Login',
    meta: { requireAuth: true },
    component: () => import('../views/LoginView.vue')
  },

  {
    path: '/loginViewCopy',
    name: 'LoginViewCopy',
    meta: { requireAuth: false },
    component: () => import('../views/LoginViewCopy.vue')
  },

  {
    path: '/articleList',
    name: 'ArticleList',
    meta: { requireAuth: true },
    component: () => import('../views/ArticleListView.vue')
  },
  {
    path: '/padNewsHome',
    name: 'PadNewsHome',
    meta: { requireAuth: false },
    component: () => import('../views/pad/PadNewsListViewMobile.vue')
  },
  //一卡通系统
  {
    path: '/eCardIndexView',
    name: 'eCardIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/eCard/eCardIndexView.vue')
  },
  {
    path: '/attendanceResultsList/:meetingId',
    name: 'attendanceResultsList',
    meta: { requireAuth: false, name: "考勤结果浏览" },
    component: () => import('../views/attendance/attendanceResultsList.vue')
  },
  //印刷管理系统
  {
    path: '/printingSystem',
    name: 'printingSystem',
    meta: { requireAuth: true },
    component: () => import('../views/printingSystem/printingIndexView.vue'),
    redirect: '/printingSystem/printingMainView',
    children: [
      {
        path: 'printingMainView', name: 'printingMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/printingSystem/printingMainView')
      },
      {
        path: 'printAdminList', name: 'printAdminList',
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/printingSystem/printAdminList.vue')
      },
      {
        path: 'printPersonalList', name: 'printPersonalList',
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/printingSystem/printPersonalList')
      },
    ]
  },
  //述职报告管理系统
  {
    path: '/reportWork',
    name: 'reportWork',
    meta: { requireAuth: true },
    component: () => import('../views/reportWork/ReportWorkIndexView.vue'),
    redirect: '/reportWork/ReportWorkMainView',
    children: [
      {
        path: 'reportWorkMainView', name: 'reportWorkMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/reportWork/ReportWorkMainView')
      },
      {
        path: 'pbArticleListView', name: 'pbArticleListView',
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/reportWork/PbArticleListView.vue')
      },

    ]
  },
  //学生管理系统
  {
    path: '/studentManager',
    name: 'studentManager',
    meta: { requireAuth: true },
    component: () => import('../views/studentManager/studentManagerIndexView.vue'),
    redirect: '/studentManager/studentManagerMainView',
    children: [
      {
        path: 'studentManagerMainView', name: 'studentManagerMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/studentManager/studentManagerMainView')
      },
      {
        path: 'dayStudentView', name: 'dayStudentView',
        meta: { requireAuth: true, comp: 'Main', name: "走读生管理系统", meta: { keepAlive: true }, },
        component: () => import('../views/studentManager/dayStudentView')
      },

    ]
  },
  //复习生管理系统
  {
    path: '/reviewStudent',
    name: 'reviewStudent',
    meta: { requireAuth: true },
    component: () => import('../views/reviewStudent/reviewStudentIndexView.vue'),
    redirect: '/reviewStudent/reviewStudentCollect',
    children: [
      {
        path: 'reviewStudentMainView', name: 'reviewStudentMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/reviewStudent/reviewStudentMainView')
      },
      {
        path: 'reviewStudentList', name: 'reviewStudentList',
        meta: { requireAuth: true, comp: 'Main', name: "复习生审批", meta: { keepAlive: true }, },
        component: () => import('../views/reviewStudent/reviewStudentList')
      },
      // {
      //   path: 'reviewStudentCollect1', name: 'reviewStudentCollect1',
      //   meta: { requireAuth: true, comp: 'Main', name: "复习生审批汇总", meta: { keepAlive: true }, },
      //   component: () => import('../views/reviewStudent/reviewStudentCollect1')
      // },
      {
        path: 'reviewStudentCollect', name: 'reviewStudentCollect',
        meta: { requireAuth: true, comp: 'Main', name: "复习生审批汇总", meta: { keepAlive: true }, },
        component: () => import('../views/reviewStudent/reviewStudentCollect')
      },
    ]
  },
  //新生管理系统
  {
    path: '/newStudent',
    name: 'newStudent',
    meta: { requireAuth: true },
    component: () => import('../views/newStudent/NewStudentIndexView.vue'),
    redirect: '/newStudent/newStudentMainView',
    children: [
      {
        path: 'NewStudentMainView', name: 'NewStudentMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/newStudent/NewStudentMainView')
      },
      {
        path: 'NewStudentListView', name: 'NewStudentListView',
        meta: { requireAuth: true, comp: 'Main', name: "新生审批", meta: { keepAlive: true }, },
        component: () => import('../views/newStudent/NewStudentListView')
      },
      {
        path: 'NewStudentInformView', name: 'NewStudentInformView',
        meta: { requireAuth: true, comp: 'Main', name: "报名信息", meta: { keepAlive: true }, },
        component: () => import('../views/newStudent/NewStudentInformView')
      },
    ]
  },
  //电子班牌
  {
    path: '/padIndexView',
    name: 'PadIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/pad/PadIndexView.vue'),
    redirect: '/padIndexView/padMainView',
    children: [
      {
        path: 'padMainView',
        name: 'PadMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pad/PadMainView.vue')
      },
      {
        path: 'padMessageListView',
        name: 'PadMessageListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pad/PadMessageListView.vue')
      },
      {
        path: 'padNewsListView',
        name: 'PadNewsListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pad/PadNewsListView.vue')
      },

    ]
  },
  //网盘
  {
    path: '/panIndexView',
    name: 'PanIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/pan/PanIndexView.vue'),
    redirect: '/PanIndexView/panMainView',
    children: [
      {
        path: 'panMainView',
        name: 'PanMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pan/PanMainView.vue')
      },
      {
        path: 'panFilesListView',
        name: 'PanFilesListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pan/PanFilesListView.vue')
      },
      {
        path: 'panFoldersListView',
        name: 'PanFoldersListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pan/PanFoldersListView.vue')
      },
      {
        path: 'panFileSharesListView',
        name: 'PanFileSharesListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "共享", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pan/PanFileSharesListView.vue')
      },
      {
        path: 'panFilePublicListView',
        name: 'PanFilePublicListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "共享", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/pan/PanFilePublicListView.vue')
      },

    ]
  },
  //综合素质评价系统
  {
    path: '/evReviewUsersView',
    name: 'evReviewUsersView',
    meta: { requireAuth: true },
    component: () => import('../views/evaluate/EvReviewUsersView.vue'),
  },
  {
    path: '/evReviewDesignView',
    name: 'evReviewDesignView',
    meta: { requireAuth: true },
    component: () => import('../views/evaluate/EvReviewDesignView.vue'),
  },
  {
    path: '/evReviewAddView',
    name: 'evReviewAddView',
    meta: { requireAuth: true },
    component: () => import('../views/evaluate/EvReviewAddView.vue'),
  },
  {
    path: '/evReviewStudentView',
    name: 'EvReviewStudentView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/evaluate/EvReviewStudentView.vue')
  },
  {
    path: '/evReviewByStudentView',
    name: 'EvReviewByStudentView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/evaluate/EvReviewByStudentView.vue')
  },
  {
    path: '/evaluateIndexView',
    name: 'EvaluateIndexView',
    meta: { requireAuth: true },

    component: () => import('../views/evaluate/EvaluateIndexView.vue'),
    redirect: '/evaluateIndexView/evaluateMainView',
    children: [
      {
        path: 'evaluateMainView',
        name: 'EvaluateMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/EvaluateMainView.vue')
      },
      {
        path: 'evReviewListView',
        name: 'EvReviewListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/EvReviewListView.vue')
      },
      {
        path: 'evTypeListView',
        name: 'EvTypeListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/EvTypeListView.vue')
      },
      {
        path: 'myEvReviewListView',
        name: 'MyEvReviewListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/EvReviewListViewMy.vue')
      },
      {
        path: 'baseQuestionBankListView',
        name: 'BaseQuestionBankListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/BaseQuestionBankListView.vue')
      },
      {
        path: 'evAllAnalysisViewByReview',
        name: 'EvAllAnalysisViewByReview',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/EvAllAnalysisViewByReview.vue')
      },
      {
        path: 'evAllAnalysisViewByStudent',
        name: 'EvAllAnalysisViewByStudent',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/EvAllAnalysisViewByStudent.vue')
      },
      {
        path: 'pbTestListView',
        name: 'PbTestListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/evaluate/PbTestListView.vue')
      },

    ]
  },
  //问卷管理系统
  {
    path: '/design',
    name: 'Design',
    meta: { requireAuth: true },
    component: () => import('../views/questionnaire/DesignView.vue'),
  },
  {
    path: '/analysis',
    name: 'Analysis',
    meta: { requireAuth: true },
    component: () => import('../views/questionnaire/AnalysisView.vue'),
  },
  {
    path: '/answerDetail',
    name: 'AnswerDetail',
    meta: { requireAuth: true },
    component: () => import('../views/questionnaire/AnswerDetailView.vue'),
  },
  {
    path: '/questionnaireIndexView',
    name: 'QuestionnaireIndexView',
    meta: { requireAuth: true },

    component: () => import('../views/questionnaire/QuestionnaireIndexView.vue'),
    redirect: '/questionnaireIndexView/questionnaireIMainView',
    children: [
      {
        path: 'questionnaireIMainView',
        name: 'QuestionnaireIMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/questionnaire/QuestionnaireIMainView.vue')
      },
      {
        path: 'qusetionnaireListView',
        name: 'QusetionnaireListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/questionnaire/QusetionnaireListView.vue')
      },
      {
        path: 'qusetionnaireTemplateListView',
        name: 'QusetionnaireTemplateListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/questionnaire/QusetionnaireTemplateListView.vue')
      },
      {
        path: 'qusetionnaireDeleteListView',
        name: 'QusetionnaireDeleteListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/questionnaire/QusetionnaireDeleteListView.vue')
      },

    ]
  },
  //成绩分析系统
  {
    path: '/achievementAnalysisIndexView',
    name: 'AchievementAnalysisIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/achievementAnalysis/AchievementAnalysisIndexView.vue'),
    redirect: '/achievementAnalysisIndexView/achievementAnalysisMainView',
    children: [
      {
        path: 'achievementAnalysisMainView',
        name: 'AchievementAnalysisMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/AchievementAnalysisMainView.vue')
      },
      {
        path: 'achievementAnalysisListView',
        name: 'AchievementAnalysisListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/AchievementAnalysisListView.vue')
      },
      {
        path: 'baseAchievementClassMetricsListView',
        name: 'BaseAchievementClassMetricsListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/BaseAchievementClassMetricsListView.vue')
      },
      {
        path: 'achievementListView',
        name: 'AchievementListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/AchievementListView.vue')
      },
      {
        path: 'baseAchievementScoreLineListView',
        name: 'BaseAchievementScoreLineListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/BaseAchievementScoreLineListView.vue')
      },
      {
        path: 'baseAchievementAnalysisSubjectListView',
        name: 'BaseAchievementAnalysisSubjectListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/BaseAchievementAnalysisSubjectListView.vue')
      },
      {
        path: 'baseAchievementAnalysisTeacherListView',
        name: 'BaseAchievementAnalysisTeacherListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/achievementAnalysis/BaseAchievementAnalysisTeacherListView.vue')
      },
    ]
  },
  //综合审批系统
  {
    path: '/approvalIndexView',
    name: 'ApprovalIndexView',
    meta: { requireAuth: true },

    component: () => import('../views/approval/ApprovalIndexView.vue'),
    redirect: '/approvalIndexView/approvalMainView',
    children: [
      {
        path: 'approvalMainView',
        name: 'ApprovalMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/approval/ApprovalMainView.vue')
      },
      {
        path: 'approvalTaskListView',
        name: 'ApprovalTaskListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/invoice/ApprovalTaskListView.vue')
      },
      {
        path: 'approvalInvoiceListView',
        name: 'ApprovalInvoiceListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/invoice/ApprovalInvoiceListView.vue')
      },
      {
        path: 'approvalLogsListView',
        name: 'ApprovalLogsListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/invoice/ApprovalLogsListView.vue')
      },
      // 巡查上报
      {
        path: 'approvalReportListView',
        name: 'ApprovalReportListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/report/ApprovalReportListView.vue')
      },
      {
        path: 'approvalCarListView',
        name: 'ApprovalCarListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/car/ApprovalCarListView.vue')
      },
      {
        path: 'approvalCarRecordListView',
        name: 'ApprovalCarRecordListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/car/ApprovalCarRecordListView.vue')
      },
      //实验室
      {
        path: 'approvalAppointmentListView',
        name: 'ApprovalAppointmentListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/meeting/ApprovalAppointmentListView.vue')
      },
      {
        path: 'approvalAppointmentRecordListView',
        name: 'ApprovalAppointmentRecordListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/meeting/ApprovalAppointmentRecordListView.vue')
      },
      {
        path: 'approvalMeetingRoomListView',
        name: 'ApprovalMeetingRoomListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/meeting/ApprovalMeetingRoomListView.vue')
      },
      //用章
      {
        path: 'approvalSealListView',
        name: 'ApprovalSealListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/seal/ApprovalSealListView.vue')
      },
      {
        path: 'approvalSealTaskListView',
        name: 'ApprovalSealTaskListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/seal/ApprovalSealTaskListView.vue')
      },
    ]
  },
  //课表管理系统
  {
    path: '/scheduleIndexView',
    name: 'scheduleIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/schedule/scheduleIndexView.vue'),
    redirect: '/scheduleIndexView/scheduleMainView',
    children: [
      {
        path: 'scheduleMainView',
        name: 'scheduleMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/schedule/scheduleMainView.vue')
      },
      {
        path: 'subjectList',
        name: 'subjectList',
        meta: {
          requireAuth: true, comp: 'Main', name: "学科列表", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/schedule/subjectList.vue')
      },
      {
        path: 'subjectAliasList',
        name: 'subjectAliasList',
        meta: {
          requireAuth: true, comp: 'Main', name: "学科别名", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/schedule/subjectAliasList.vue')
      },
      {
        path: 'teacherSubjectList',
        name: 'teacherSubjectList',
        meta: {
          requireAuth: true, comp: 'Main', name: "人员学科", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/schedule/teacherSubjectList.vue')
      },
      {
        path: 'classScheduleList',
        name: 'classScheduleList',
        meta: {
          requireAuth: true, comp: 'Main', name: "班级课表", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/schedule/classScheduleList.vue')
      },
      {
        path: 'classTeacherList',
        name: 'classTeacherList',
        meta: {
          requireAuth: true, comp: 'Main', name: "任课安排", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/schedule/classTeacherList.vue')
      },
    ]
  },
  //人员考勤系统
  {
    path: '/attendanceIndexView',
    name: 'attendanceIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/attendance/attendanceIndexView.vue'),
    redirect: '/attendanceIndexView/attendanceMainView',
    children: [
      {
        path: 'attendanceMainView',
        name: 'attendanceMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/attendanceMainView.vue')
      },
      {
        path: 'teacherAttendanceList',
        name: 'teacherAttendanceList',
        meta: {
          requireAuth: true, comp: 'Main', name: "人员考勤", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/teacherAttendanceList.vue')
      },
      {
        path: 'departmentAttendanceList',
        name: 'departmentAttendanceList',
        meta: {
          requireAuth: true, comp: 'Main', name: "部门考勤", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/departmentAttendanceList.vue')
      },
      {
        path: 'teacherListView',
        name: 'teacherListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "人员管理", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/teacherListView.vue')
      },
      {
        path: 'holidayListView',
        name: 'holidayListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "假期管理", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/holidayListView.vue')
      },
      {
        path: 'teacherLeaveList',
        name: 'teacherLeaveList',
        meta: {
          requireAuth: true, comp: 'Main', name: "人员请假", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/teacherLeaveList.vue')
      },
      {
        path: 'teacherSignList',
        name: 'teacherSignList',
        meta: {
          requireAuth: true, comp: 'Main', name: "打卡数据", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/teacherSignList.vue')
      },
      {
        path: 'attendanceError',
        name: 'attendanceError',
        meta: {
          requireAuth: true, comp: 'Main', name: "考勤纠错", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/attendanceError.vue')
      },
      {
        path: 'headerTeacherAttendanceList',
        name: 'headerTeacherAttendanceList',
        meta: {
          requireAuth: true, comp: 'Main', name: "班主任考勤", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/headerTeacherAttendanceList.vue')
      },
      {
        path: 'meetingAttendanceList',
        name: 'meetingAttendanceList',
        meta: {
          requireAuth: true, comp: 'Main', name: "会议考勤", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/meetingAttendanceList.vue')
      },
      {
        path: 'salaryDeductList',
        name: 'salaryDeductList',
        meta: {
          requireAuth: true, comp: 'Main', name: "工资扣除", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/attendance/salaryDeductList.vue')
      },
    ]
  },
  //电子期刊
  {
    path: '/eBookIndexView',
    name: 'EBookIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/eBook/EBookIndexView.vue'),
    redirect: '/eBookIndexView/eBookMainView',
    children: [
      {
        path: 'eBookMainView',
        name: 'EBookMainView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/eBook/EBookMainView.vue')
      },

      {
        path: 'eBookListView',
        name: 'EBookListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/eBook/EBookListView.vue')
      },
      {
        path: 'eBookTypeListView',
        name: 'EBookTypeListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/eBook/EBookTypeListView.vue')
      },

    ]
  },

  //固定资产管理系统
  {
    path: '/assetsIndexView',
    name: 'AssetsIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/assets/AssetsIndexView.vue'),
    redirect: '/assetsIndexView/assetsMainView',
    children: [
      {
        path: 'assetsMainView',
        name: 'AssetsMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/assets/AssetsMainView.vue')
      },
      {
        path: 'assetsDetailView',
        name: 'AssetsDetailView',
        meta: {
          requireAuth: true, comp: '资产明细', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/AssetsDetailView.vue')
      },
      {
        path: 'baseAddressListView',
        name: 'BaseAddressListView',
        meta: {
          requireAuth: true, comp: '地址信息', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/BaseAddressListView.vue')
      },
      {
        path: 'faProjectListView',
        name: 'FaProjectListView',
        meta: {
          requireAuth: true, comp: '批次信息', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/FaProjectListView.vue')
      },
      {
        path: 'assetsTaskListView',  //盘点任务列表
        name: 'AssetsTaskListView',
        meta: {
          requireAuth: true, comp: '盘点任��', name: "主页", meta: {
            keepAlive: false
          },
        },
        component: () => import('../views/assets/AssetsTaskListView.vue')
      },
      {
        path: 'faSubListInventoryView', //盘点明细
        name: 'FaSubListInventoryView',
        meta: {
          requireAuth: true, comp: '盘点明细', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/FaSubListInventoryView.vue')
      },
      {
        path: 'assetsDepartment', //盘点部门管理
        name: 'AssetsDepartment',
        meta: {
          requireAuth: true, comp: '部门管理', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/AssetsDepartment.vue')
      },
      {
        path: 'assetsApproveIndex', //审批页面
        name: 'AssetsApproveIndex',
        meta: {
          requireAuth: true, comp: '部门管理', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/AssetsApproveIndex.vue')
      },
      {
        path: 'assetsDetailCurrentView', //审批页面
        name: 'AssetsDetailCurrentView',
        meta: {
          requireAuth: true, comp: '部门管理', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/AssetsDetailCurrentView.vue')
      },
      {
        path: 'assetsRecycleBin',
        name: 'AssetsRecycleBin',
        meta: {
          requireAuth: true, comp: '回收站', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/assets/AssetsRecycleBin.vue')
      },
    ]
  },


  //通知公告系统
  {
    path: '/noticeIndexView',
    name: 'NoticeIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/notice/NoticeIndexView.vue'),
    redirect: '/noticeIndexView/noticeMainView',
    children: [
      {
        path: 'noticeMainView',
        name: 'NoticeMainView',
        meta: { requireAuth: true },
        component: () => import('../views/notice/NoticeMainView.vue')
      },
      {
        path: 'noticePublishView',
        name: 'NoticePublishView',
        meta: { requireAuth: true, name: "通知发布", },
        component: () => import('../views/notice/NoticePublishView.vue')
      },
      {
        path: 'noticePublishListView',
        name: 'NoticePublishListView',
        meta: { requireAuth: true, name: "通知列表", },
        component: () => import('../views/notice/NoticePublishListView.vue')
      },
      {
        path: 'noticePublishMyListView',
        name: 'NoticePublishMyListView',
        meta: { requireAuth: true, name: "我的通知", },
        component: () => import('../views/notice/NoticePublishMyListView.vue')
      },
      {
        path: 'noticeDetailView',
        name: 'NoticeDetailView',
        meta: { requireAuth: true, name: "通知详情", },
        component: () => import('../views/notice/NoticeDetailView.vue')
      },
      {
        path: 'noticePublishDepartmentListView',
        name: 'NoticePublishDepartmentListView',
        meta: { requireAuth: true, name: "部门通知", },
        component: () => import('../views/notice/NoticePublishDepartmentListView.vue')
      },
      {
        path: 'noticePublishSchoolListView',
        name: 'NoticePublishSchoolListView',
        meta: { requireAuth: true, name: "学校通知", },
        component: () => import('../views/notice/NoticePublishSchoolListView.vue')
      },
    ]
  },

  //通知公告系统(新)
  {
    path: '/noticeCopyIndexView',
    name: 'NoticeCopyIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/noticeCopy/NoticeCopyIndexView.vue'),
    redirect: '/noticeCopyIndexView/noticeCopyPublishView',
    children: [
      {
        path: 'noticeCopyMainView',
        name: 'NoticeCopyMainView',
        meta: { requireAuth: true },
        component: () => import('../views/noticeCopy/NoticeCopyMainView.vue')
      },
      {
        path: 'noticeCopyPublishView',
        name: 'NoticeCopyPublishView',
        meta: { requireAuth: true, name: "通知发布", },
        component: () => import('../views/noticeCopy/NoticeCopyPublishView.vue')
      },
      {
        path: 'noticeCopyPublishListView',
        name: 'NoticeCopyPublishListView',
        meta: { requireAuth: true, name: "通知列表", },
        component: () => import('../views/noticeCopy/NoticeCopyPublishListView.vue')
      },
      {
        path: 'noticeCopyMyListView',
        name: 'NoticeCopyMyListView',
        meta: { requireAuth: true, name: "我的通知", },
        component: () => import('../views/noticeCopy/NoticeCopyMyListView.vue')
      },
      {
        path: 'noticeCopyDepartmentListView',
        name: 'NoticeCopyDepartmentListView',
        meta: { requireAuth: true, name: "部门通知", },
        component: () => import('../views/noticeCopy/NoticeCopyDepartmentListView.vue')
      },
      {
        path: 'noticeCopySchoolListView',
        name: 'NoticeCopySchoolListView',
        meta: { requireAuth: true, name: "全校通知", },
        component: () => import('../views/noticeCopy/NoticeCopySchoolListView.vue')
      },
      {
        path: 'noticeCopyEditPublishView',
        name: 'NoticeCopyEditPublishView',
        meta: { requireAuth: true, name: "修改通知", },
        component: () => import('../views/noticeCopy/NoticeCopyEditPublishView.vue')
      },
      {
        path: 'NoticeCopyDetial',
        name: 'NoticeCopyDetial',
        meta: { requireAuth: true, name: "通知详情", },
        component: () => import('../views/noticeCopy/NoticeCopyDetial.vue')
      },
    ]
  },


  //学生缴费
  {
    path: '/studentPaymentIndexView',
    name: 'StudentPaymentIndexView',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/studentPayment/StudentPaymentIndexView.vue'),
    redirect: '/studentPaymentIndexView/studentPaymentMainView',
    children: [
      {
        path: 'StudentPaymentMainView', name: 'StudentPaymentMainView',
        meta: { requireAuth: true, comp: 'Main', name: "学生缴费主页", meta: { keepAlive: true }, },
        component: () => import('../views/studentPayment/StudentPaymentMainView')
      },
      {
        path: 'studentPaymentView', name: 'StudentPaymentView',
        meta: { requireAuth: true, comp: 'Main', name: "收费任务", meta: { keepAlive: true }, },
        component: () => import('../views/studentPayment/StudentPaymentView'),
        // children: [
        //   {
        //     path: 'payListManagementView', name: 'payListManagementView',
        //     meta: { requireAuth: true, comp: 'Main', name: "名单管理", meta: { keepAlive: true }, },
        //     component: () => import('../views/studentPayment/payListManagementView')
        //   },
        // ]
      },
      {
        path: 'payListManagementView', name: 'payListManagementView',
        meta: { requireAuth: true, comp: 'Main', name: "名单管理", meta: { keepAlive: true }, },
        component: () => import('../views/studentPayment/payListManagementView')
      },
      {
        path: 'paymentDetailsView', name: 'paymentDetailsView',
        meta: { requireAuth: true, comp: 'Main', name: "名单管理", meta: { keepAlive: true }, },
        component: () => import('../views/studentPayment/paymentDetailsView')
      },

    ]
  },


  //校园缴费系统
  {
    path: '/paymentIndexView',
    name: 'paymentIndexView',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/payment/paymentIndexView.vue'),
    redirect: '/paymentIndexView/paymentMainView',
    children: [
      {
        path: 'paymentMainView', name: 'paymentMainView',
        meta: { requireAuth: true, comp: 'Main', name: "学生缴费主页", meta: { keepAlive: false }, },
        component: () => import('../views/payment/paymentMainView')
      },
      {
        path: 'refundListView', name: 'refundListView',
        meta: { requireAuth: true, comp: 'Main', name: "退费管理", meta: { keepAlive: false }, },
        component: () => import('../views/payment/refundListView')
      },
      {
        path: 'paymentManagementView', name: 'PaymentManagementView',
        meta: { requireAuth: true, comp: 'Main', name: "缴费管理", meta: { keepAlive: false }, },
        component: () => import('../views/payment/PaymentManagementView')
      },
      {
        path: 'establishCardView', name: 'EstablishCardView',
        meta: { requireAuth: true, comp: 'Main', name: "建档立卡", meta: { keepAlive: false }, },
        component: () => import('../views/payment/EstablishCardView.vue')
      },
      {
        path: 'paymentDetailView', name: 'paymentDetailView',
        meta: { requireAuth: true, comp: 'Main', name: "缴费详情", meta: { keepAlive: false }, },
        component: () => import('../views/payment/paymentDetailView.vue')
      },
      {
        path: 'labelInformView', name: 'LabelInformView',
        meta: { requireAuth: true, comp: 'Main', name: "标签信息", meta: { keepAlive: false }, },
        component: () => import('../views/payment/LabelInformView.vue')
      },


    ]
  },


  //信息发布系统
  {
    path: '/informPublishIndexView',
    name: 'InformPublishIndexView',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/informPublish/InformPublishIndexView.vue'),
    redirect: '/InformPublishIndexView/InformPublishMainView',
    children: [
      {
        path: 'InformPublishMainView', name: 'InformPublishMainView',
        meta: { requireAuth: true, comp: 'Main', name: "信息发布主页", meta: { keepAlive: true }, },
        component: () => import('../views/informPublish/InformPublishMainView')
      },
      {
        path: 'messageListView', name: 'MessageListView',
        meta: { requireAuth: true, comp: 'Main', name: "留言系统", meta: { keepAlive: true }, },
        component: () => import('../views/informPublish/MessageListView')
      },
      {
        path: 'messageListViewCopy', name: 'MessageListViewCopy',
        meta: { requireAuth: true, comp: 'Main', name: "留言系统", meta: { keepAlive: true }, },
        component: () => import('../views/informPublish/MessageListViewCopy')
      },
      {
        path: 'healthCheckList', name: 'HealthCheckList',
        meta: { requireAuth: true, comp: 'Main', name: "体检汇总", meta: { keepAlive: true }, },
        component: () => import('../views/informPublish/HealthCheckList')
      },

    ]
  },

  //会议签到页面本部
  {
    path: '/signInView',
    name: 'SignInView',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/signIn/SignInView.vue'),
  },
  {
    path: '/signInViewBlank',
    name: 'SignInViewBlank',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/signIn/SignInViewBlank.vue'),
  },
  //会议签到页面东校区
  {
    path: '/signInViewCopy',
    name: 'SignInViewCopy',
    meta: {
      requireAuth: false, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/signIn/SignInViewCopy.vue'),
  },
  //宿舍评优大屏
  {
    path: '/dormitoryShowBefore',
    name: 'DormitoryShowBefore',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {},
    },
    component: () => import('../views/dormitoryShow/DormitoryShowBefore.vue'),
  },
  //宿舍管理系统
  {
    path: '/dormitoryShowIndexView',
    name: 'DormitoryShowIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/dormitoryShow/DormitoryShowIndexView.vue'),
    redirect: '/dormitoryShowIndexView/dormitoryShowMainView',
    children: [
      {
        path: 'dormitoryShowMainView', name: 'DormitoryShowMainView',
        meta: { requireAuth: true, comp: 'Main', name: "主页", meta: { keepAlive: true }, },
        component: () => import('../views/dormitoryShow/DormitoryShowMainView')
      },
      {
        path: 'dormitoryShowAffter', name: 'DormitoryShowAffter',
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        // component: () => import('../views/dormitoryShow/DormitoryShowAffter.vue')
        component: () => import('../views/dormitoryShow/DormitoryShowAffter.vue')
      },
      {
        path: 'dormManagementView', name: 'DormManagementView',
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/dormitoryShow/DormManagementView.vue')
      },
      {
        path: 'roomBuildingView', name: 'RoomBuildingView', //宿舍楼房间
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/dormitoryShow/RoomBuildingView.vue')
      },
      {
        path: 'roomManagerView', name: 'RoomManagerView', //宿舍楼管理人员
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/dormitoryShow/RoomManagerView.vue')
      },
      {
        path: 'dormCheckView', name: 'DormCheckView', //宿舍楼管理人员
        meta: { requireAuth: true, comp: 'admin', name: "管理", meta: { keepAlive: true }, },
        component: () => import('../views/dormitoryShow/DormCheckView.vue')
      },

    ]
  },




  //公文流转系统
  {
    path: '/fileFlowIndexView',
    name: 'FileFlowIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/fileFlow/FileFlowIndexView.vue'),
    redirect: '/fileFlowIndexView/fileFlowView',
    children: [
      {
        path: 'fileFlowView',
        name: 'FileFlowView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/fileFlow/FileFlowView.vue')
      },
      {
        path: 'fileFlowViewApprove',
        name: 'FileFlowViewApprove',
        meta: {
          requireAuth: true, comp: 'Main', name: "公文审批", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/fileFlow/FileFlowViewApprove.vue')
      },
      {
        path: 'fileFlowViewFeedback',
        name: 'FileFlowViewFeedback',
        meta: {
          requireAuth: true, comp: 'Main', name: "公文反馈", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/fileFlow/FileFlowViewFeedback.vue')
      },
      {
        path: 'test',
        name: 'test',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/fileFlow/test.vue')
      },

    ]
  },
  //工作日志管理系统
  {
    path: '/workRecordIndexView',
    name: 'WorkRecordIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/workRecord/WorkRecordIndexView.vue'),
    redirect: '/workRecordIndexView/workRecordMainView',
    children: [
      {
        path: 'workRecordMainView',
        name: 'WorkRecordMainView',
        meta: { requireAuth: true },
        component: () => import('../views/workRecord/WorkRecordMainView.vue')
      },

      {
        path: 'baseWorkRecordListView',
        name: 'BaseWorkRecordListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/workRecord/BaseWorkRecordListView.vue')
      },

    ]
  },

  //易耗品管理系统
  {
    path: '/medicalProductLogin',
    name: 'MedicalProductLogin',
    meta: {
      requireAuth: true, comp: 'Main', name: "易耗品登录", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/medicalProduct/MedicalProductLogin.vue'),
  },

  {
    path: '/MedicalProductIndex',
    name: 'MedicalProductIndex',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/medicalProduct/MedicalProductIndex.vue'),
    redirect: '/MedicalProductIndex/medicalHomeView',
    children: [
      // {
      //   path: 'workRecordMainView',
      //   name: 'WorkRecordMainView',
      //   meta: { requireAuth: true },
      //   component: () => import('../views/workRecord/WorkRecordMainView.vue')
      // },

      {
        path: 'medicalHomeView',
        name: 'MedicalHomeView',
        meta: {
          requireAuth: false, comp: 'Main', name: "首页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MedicalHomeView.vue')
      },
      {
        path: 'medicalProductAssets',
        name: 'MedicalProductAssets',
        meta: {
          requireAuth: false, comp: 'Main', name: "进出库管理", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MedicalProductAssets.vue')
      },
      {
        path: 'medicalProductAssetsCopy',
        name: 'MedicalProductAssetsCopy',
        meta: {
          requireAuth: false, comp: 'Main', name: "进出库管理", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MedicalProductAssetsCopy.vue')
      },
      {
        path: 'materialsApplyList',
        name: 'MaterialsApplyList',
        meta: {
          requireAuth: false, comp: 'Main', name: "物资申领", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MaterialsApplyList.vue')
      },
      {
        path: 'medicalProductAssetsCheck',
        name: 'MedicalProductAssetsCheck',
        meta: {
          requireAuth: false, comp: 'Main', name: "库存盘点", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MedicalProductAssetsCheck.vue')
      },
      {
        path: 'medicalProductAssetsCheckSelf',
        name: 'MedicalProductAssetsCheckSelf',
        meta: {
          requireAuth: false, comp: 'Main', name: "库存盘点", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MedicalProductAssetsCheckSelf.vue')
      },
      {
        path: 'medicalProductClassify',
        name: 'MedicalProductClassify',
        meta: {
          requireAuth: false, comp: 'Main', name: "物品分类", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/MedicalProductClassify.vue')
      },
      {
        path: 'inventoryWarning',
        name: 'InventoryWarning',
        meta: {
          requireAuth: false, comp: 'Main', name: "库存预警", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/InventoryWarning.vue')
      },
      {
        path: 'dataStatistics',
        name: 'DataStatistics',
        meta: {
          requireAuth: false, comp: 'Main', name: "数据统计", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/DataStatistics.vue')
      },
      {
        path: 'report',
        name: 'report',
        meta: {
          requireAuth: false, comp: 'Main', name: "统计报表", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/Report.vue')
      },
      {
        path: 'stockOutReceiptList',
        name: 'StockOutReceiptList',
        meta: {
          requireAuth: false, comp: 'Main', name: "出库单", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/StockOutReceiptList.vue')
      },
      {
        path: 'stockOutReceiptListSelf',
        name: 'StockOutReceiptListSelf',
        meta: {
          requireAuth: false, comp: 'Main', name: "出库单", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/StockOutReceiptListSelf.vue')
      },
      {
        path: 'stockInReceiptList',
        name: 'StockInReceiptList',
        meta: {
          requireAuth: false, comp: 'Main', name: "入库单", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/StockInReceiptList.vue')
      },
      {
        path: 'userManagement',
        name: 'UserManagement',
        meta: {
          requireAuth: false, comp: 'Main', name: "用户管理", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/UserManagement.vue')
      },
      {
        path: 'departmentManagement',
        name: 'DepartmentManagement',
        meta: {
          requireAuth: false, comp: 'Main', name: "处室管理", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/medicalProduct/DepartmentManagement.vue')
      },
    ]
  },
  {
    path: '/educationSystem',
    name: 'EducationSystem',
    meta: {
      requireAuth: true, comp: 'Main', name: "全员育人制导师系统", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/EducationSystem.vue'),

  },

  //报修管理系统
  {
    path: '/newRepairIndex',
    name: 'NewRepairIndex',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/newRepair/NewRepairIndex.vue'),
    redirect: '/newRepairIndex/newRepairListView',
    children: [
      {
        path: 'newRepairListView',
        name: 'NewRepairListView',
        meta: {
          requireAuth: false, comp: 'Main', name: "报修信息", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/newRepair/NewRepairListView.vue')
      },
      {
        path: 'newRepairTypeView',
        name: 'NewRepairTypeView',
        meta: {
          requireAuth: false, comp: 'Main', name: "报修类型", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/newRepair/NewRepairTypeView.vue')
      },
      {
        path: 'newRepairStatistics',
        name: 'NewRepairStatistics',
        meta: {
          requireAuth: false, comp: 'Main', name: "统计分析", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/newRepair/NewRepairStatistics.vue')
      },

    ]
  },

  //我的工资系统
  {
    path: '/',
    name: 'WageIndexView',
    meta: {
      requireAuth: true, comp: 'Main', name: "主页", meta: {
        keepAlive: true
      },
    },
    component: () => import('../views/wage/WageIndexView.vue'),
    redirect: '/wageIndexView/wageMainView',
    children: [
      {
        path: 'wageMainView',
        name: 'WageMainView',
        meta: { requireAuth: true },
        component: () => import('../views/wage/WageMainView.vue')
      },

      {
        path: 'myWageView',
        name: 'MyWageView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/wage/MyWageView.vue')
      },

    ]
  },
  //基础平台
  {
    path: '/baseInfoIndexView',
    name: 'BaseInfoIndexView',
    meta: { requireAuth: true },
    component: () => import('../views/baseInfo/BaseInfoIndexView.vue'),
    redirect: '/baseInfoIndexView/baseInfoMainView',
    children: [
      {
        path: 'appListView',
        name: 'AppListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/AppListView.vue')
      },
      {
        path: 'baseDepartmentListView',
        name: 'BaseDepartmentListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseDepartmentListView.vue')
      },
      {
        path: 'baseTeacherCarListView',
        name: 'BaseTeacherCarListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseTeacherCarListView.vue')
      },
      {
        path: 'baseAchievemenListView',
        name: 'BaseAchievemenListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseAchievemenListView.vue')
      },
      {
        path: 'baseStudentListView',
        name: 'BaseStudentListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseStudentListView.vue')
      },
      {
        path: 'achievementTypeListView',
        name: 'AchievementTypeListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/AchievementTypeListView.vue')
      },
      {
        path: 'roomListView',
        name: 'RoomListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/NRoomListView.vue')
      },
      {
        path: 'classinfoListView',
        name: 'ClassinfoListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/ClassinfoListView.vue')
      },
      {
        path: 'leaderListView',
        name: 'LeaderListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/LeaderListView.vue')
      },
      {
        path: 'baseMenuListView',
        name: 'BaseMenuListView',
        meta: { requireAuth: true, comp: 'BaseMenuListView', name: "菜单信息" },
        component: () => import('../views/baseInfo/BaseMenuListView.vue')
      },
      {
        path: 'baseInfoMainView',
        name: 'BaseInfoMainView',
        meta: { requireAuth: true },
        component: () => import('../views/baseInfo/BaseInfoMainView.vue')
      },
      {
        path: 'baseTeacherListView',
        name: 'baseTeacherListView',
        meta: { requireAuth: true },
        component: () => import('../views/baseInfo/BaseTeacherListView.vue')
      },
      {
        path: 'baseRoleListView',
        name: 'baseRoleListView',
        meta: { requireAuth: true },
        component: () => import('../views/baseInfo/BaseRoleListView.vue'),
      },
      {
        path: 'basePermissionListView',
        name: 'basePermissionListView',
        meta: { requireAuth: true },
        component: () => import('../views/baseInfo/BasePermissionListView.vue'),
      },
      {
        path: 'baseTeacherRoleListView',
        name: 'baseTeacherRoleListView',
        meta: { requireAuth: true },
        component: () => import('../views/baseInfo/BaseTeacherRoleListView.vue'),
      },
      {
        path: 'baseWageTypeListView',
        name: 'BaseWageTypeListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWageTypeListView.vue'),
      },
      {
        path: 'baseWageListView',
        name: 'BaseWageListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWageListView.vue'),
      },
      {
        path: 'baseWageMonthListView',
        name: 'BaseWageMonthListView',
        meta: {
          requireAuth: true, comp: 'Main', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWageMonthListView.vue'),
      },

      {
        path: 'baseWageMyListView',
        name: 'BaseWageMyListView',
        meta: {
          requireAuth: true, comp: 'BaseWageMyListView', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWageMyListView.vue'),
      },
      {
        path: 'baseWageStatisticsListView',
        name: 'BaseWageStatisticsListView',
        meta: {
          requireAuth: true, comp: 'BaseWageStatisticsListView', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWageStatisticsListView.vue'),
      },
      {
        path: 'baseWxBindInformView',  //微信绑定信息
        name: 'BaseWxBindInformView',
        meta: {
          requireAuth: true, comp: 'BaseWxBindInformView', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWxBindInformView.vue'),
      },
      {
        path: 'baseTeacherClockInView',
        name: 'BaseTeacherClockInView',
        meta: {
          requireAuth: true, comp: 'BaseTeacherClockInView', name: "人员打卡信息", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseTeacherClockInView.vue'),
      },
      {
        path: 'studentLeaveLogListView',
        name: 'StudentLeaveLogListView',
        meta: {
          requireAuth: true, comp: 'StudentLeaveLogListView', name: "进出校记录", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/StudentLeaveLogListView.vue'),
      },
      {
        path: 'baseDepartmentRoleView',
        name: 'BaseDepartmentRoleView',
        meta: {
          requireAuth: true, comp: 'BaseDepartmentRoleView', name: "部门授权", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseDepartmentRoleView.vue'),
      },

      {
        path: 'baseWageStatisticsListView',
        name: 'BaseWageStatisticsListView',
        meta: {
          requireAuth: true, comp: 'BaseWageStatisticsListView', name: "主页", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/baseInfo/BaseWageStatisticsListView.vue'),
      },
      {
        path: 'repairInfoListView',
        name: 'RepairInfoListView',
        meta: { requireAuth: true, comp: 'RepairInfoListView', name: "报修信息" },
        component: () => import('../views/repair/RepairInfoListView.vue'),
      },
      {
        path: 'repairInfoMyListView',
        name: 'RepairInfoMyListView',
        meta: { requireAuth: true, comp: 'RepairInfoMyListView', name: "报修信息" },
        component: () => import('../views/repair/RepairInfoMyListView.vue'),
      },
      {
        path: 'repairAddressListView',
        name: 'RepairAddressListView',
        meta: { requireAuth: true, comp: 'RepairAddressListView', name: "地点信息" },
        component: () => import('../views/repair/RepairAddressListView.vue'),
      },
      {
        path: 'repairSetListView',
        name: 'repairSetListView',
        meta: {
          requireAuth: true, comp: 'repairSetListView', name: "报修助手", meta: {
            keepAlive: true
          },
        },
        component: () => import('../views/repair/RepairSetListView.vue'),
      },
      {
        path: 'repairTypeInfoListView',
        name: 'RepairTypeInfoListView',
        meta: { requireAuth: true, comp: 'RepairTypeInfoListView', name: "报修助手" },
        component: () => import('../views/repair/RepairTypeInfoListView.vue'),
      },
    ]
  },
  {
    path: '/articleDetail',
    name: 'ArticleDetail',
    meta: { requireAuth: true },
    component: () => import('../views/ArticleDetailView.vue')
  },
  {
    path: '/:catchAll(.*)',
    name: 'NoFound',
    component: () => import('../views/NoFoundView.vue')
  },
];

const base = '/platform';
const router = createRouter({
  base: base,
  history: createWebHashHistory(),
  routes: routes
});

router.beforeEach((to, from, next) => {
  // 从 sessionStorage 获取 vuex 数据
  const vuexData = JSON.parse(sessionStorage.getItem('vuex') || '{}');
  const navMenuList = vuexData.navMenuList || [];
  
  // 检查是否存在首页菜单（路径为 /MedicalProductIndex/medicalHomeView 的菜单项）
  const hasHomeMenu = navMenuList.some(menu => 
    menu.path === '/MedicalProductIndex/medicalHomeView' || 
    (menu.children && menu.children.some(child => child.path === '/MedicalProductIndex/medicalHomeView'))
  );

  // 如果访问的是根路径
  if (to.path === '/') {
    if (hasHomeMenu) {

      next({ path: '/MedicalProductIndex/medicalHomeView' });
    } else {
      // 如果没有首页菜单，跳转到物品申领路由
      if(sessionStorage.getItem('userInfo')){

        next({ path: '/' });
      }else{

        next({ path: '/login' });
      }
    }
    return;
  }
  
  // 如果访问的是首页但没有首页菜单权限
  if (to.path === '/MedicalProductIndex/medicalHomeView' && !hasHomeMenu) {
    next({ path: '/MedicalProductIndex/stockOutReceiptListSelf' });
    return;
  }

  next();
});

export default router
